var logopened=false;$(document).ready(function(){$('#openForm').click(function(){if(logopened){$('#profilePopup').hide('fast');}else{$('#profilePopup').show('fast');$("body").append("<div id=\"blureBox\"></div>");}logopened=!logopened;return false})}).click(function(e){if(!logopened)return;e=e||window.event;var a=e.target||e.srcElement;while(a){if(a==$('#profilePopup').get(0))return;a=a.parentNode}$('#profilePopup').hide('fast');$("#blureBox").remove();logopened=false});